import 'package:tender_flutter/page/home/model/company_investment_entity.dart';

companyInvestmentEntityFromJson(CompanyInvestmentEntity data, Map<String, dynamic> json) {
	if (json['companyCode'] != null) {
		data.companyCode = json['companyCode'].toString();
	}
	if (json['companyKey'] != null) {
		data.companyKey = json['companyKey'].toString();
	}
	if (json['companyName'] != null) {
		data.companyName = json['companyName'].toString();
	}
	if (json['urlLink'] != null) {
		data.urlLink = json['urlLink'].toString();
	}
	return data;
}

Map<String, dynamic> companyInvestmentEntityToJson(CompanyInvestmentEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['companyCode'] = entity.companyCode;
	data['companyKey'] = entity.companyKey;
	data['companyName'] = entity.companyName;
	data['urlLink'] = entity.urlLink;
	return data;
}